package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yjw
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("air_compressor_R1502")
public class AirCompressorR1502 extends Model<AirCompressorR1502> {

    private static final long serialVersionUID = 1L;

    /**
     * 设备ip
     */
    @TableId("machine_ip")
    private String machineIp;

    @TableField("machine_id")
    private String machineId;

    /**
     * 公司id
     */
    private Integer company;

    /**
     * 车间
     */
    private Integer workshop;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    /**
     * driver e/stop 驾驶员紧急/停车
     */
    @TableField("driver_e_stop")
    private Integer driverEStop;

    /**
     * oil reservoir level 油藏水位
     */
    @TableField("oil_reservoir_level")
    private Integer oilReservoirLevel;

    /**
     * seal air pressure switch  密封空气压力开关
     */
    @TableField("seal_air_pressure_switch")
    private Integer sealAirPressureSwitch;

    /**
     * driver remote start 驱动程序远程启动
     */
    @TableField("driver_remote_start")
    private Integer driverRemoteStart;

    /**
     * driver remote stop 驱动程序远程结束
     */
    @TableField("driver_remote_stop")
    private Integer driverRemoteStop;

    /**
     * remote unload 远程卸载
     */
    @TableField("remote_unload")
    private Integer remoteUnload;

    /**
     * oil filter pressure drop 滤油器压降
     */
    @TableField("oil_filter_pressure_drop")
    private Integer oilFilterPressureDrop;

    /**
     * air filter pressure drop 空气过滤器压降
     */
    @TableField("air_filter_pressure_drop")
    private Integer airFilterPressureDrop;

    /**
     * driver starter status驾驶员起动状态
     */
    @TableField("driver_starter_status")
    private Integer driverStarterStatus;

    /**
     * condensation level 冷凝水平
     */
    @TableField("condensation_level")
    private Integer condensationLevel;


    @Override
    protected Serializable pkVal() {
        return this.machineIp;
    }

}
